<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>汽车详细</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="<c:url value='/jsps/pager/pager.css'/>" />
<script src="<c:url value='/jquery/jquery-1.5.1.js'/>"></script>
<link rel="stylesheet" type="text/css" href="<c:url value='/jsps/css/car/desc.css'/>">
<script src="<c:url value='/jsps/js/car/desc.js'/>"></script>
</head>

<body>
    <div class="divBookName" style="margin-left: 35px;">${car.bname }</div>
    <div>
        <img align="top" style="margin-left:35px; margin-top:15px;"
            src="<c:url value='/${car.image_w }'/>"
            class="img_image_w" />
        <div class="divBookDesc">
            <ul>
                <li>商品编号：${car.carNo }</li>
                <li>当前价：<span class="price_n">&yen;${car.currPrice }</span></li>
                <li>定价：<span class="spanPrice">&yen;${car.price }</span>
                                           折扣： <span style="color: #c30;">${car.discount }</span>折
                </li>
            </ul>
            <hr class="hr1" />
            <table>
                <tr>
                    <td colspan="3">品牌：${car.brand } </td>
                </tr>
                <tr>
                    <td colspan="3">制造商：${car.manufacturer } </td>
                </tr>
                <tr>
                    <td colspan="3">供应商：${car.supplier }</td>
                </tr>
                <tr>
                    <td colspan="3">出厂时间：${car.factoryTime }</td>
                </tr>
                <tr>
                    <td colspan="3">上市时间：${car.publishTime }</td>
                </tr>
                <tr>
                    <td>发动机型号：${car.engineModel }</td>
                    <td>轮胎品牌：${car.tyreBrand }</td>
                </tr>
            </table>
            <div class="divForm">
                <form id="form1"
                    action="<c:url value='/cartItem/add.do'/>"
                    method="post">
                    <input type="hidden" name="carNo" value="${car.carNo }" />
                             我要买：<input id="cnt" style="width: 40px; text-align: center;"
                        type="text" name="quantity" value="1" />件
                </form>
                <a id="btn" href="javascript:$('#form1').submit();"></a>
            </div>
        </div>
    </div>
</body>
</html>
